package sbt.selenium.pages;

import static org.openqa.selenium.support.ui.ExpectedConditions.alertIsPresent;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class FilmViewPage extends AnyPage {
	
	public FilmViewPage(PageManager pages) {
		super(pages);
	}
	
	@FindBy(css ="img[alt=\"Remove\"]" )
	private WebElement deleteLink;
	
	public void clickDeleteLink() {
		 deleteLink.click();
		 wait.until(alertIsPresent()).accept();
	 }

}
